Decision Server REST API - xoms/{xomname} Resource - POST Method

Deploys a managed XOM in the repository.

Sample Method Invocation

POST /api/v1/xoms/{xomname}

Parameters

None.

Request Content

The default content-type is application/octet-stream.

MIME Type: application/octet-stream

(Schema to go here)
(Schema to go here)

Response Content

The default content-type is application/xml.

MIME Type: application/json

(Schema to go here)
+ View Example
{
  "succeeded" : true,
  "resource" : {
    "id" : "{Resource identifier}",
    "uri" : "{Resource URI}",
    "name" : "{Resource name}",
    "version" : "{Resource version}",
    "creationDate" : "2017-02-27T16:56:12.971Z",
    "sha1" : "{Resource SHA1 checksum}",
    "content" : "eG9tLmphcg=="
  }
}

MIME Type: application/xml

+ View Schema
<?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="" version="1.0">

  <xs:element name="resource" type="resource"/>

  <xs:element name="result" type="restActionResult"/>

  <xs:complexType name="resource">
    <xs:sequence>
      <xs:element minOccurs="0" name="id" type="xs:string"/>
      <xs:element minOccurs="0" name="uri" type="xs:string"/>
      <xs:element minOccurs="0" name="name" type="xs:string"/>
      <xs:element minOccurs="0" name="version" type="xs:string"/>
      <xs:element minOccurs="0" name="creationDate" type="xs:string"/>
      <xs:element minOccurs="0" name="sha1" type="xs:string"/>
      <xs:element minOccurs="0" name="content" type="xs:string"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="restActionResult">
    <xs:sequence>
      <xs:element minOccurs="0" name="code" type="xs:string"/>
      <xs:element minOccurs="0" name="message" type="xs:string"/>
      <xs:element minOccurs="0" name="resource" type="xs:anyType"/>
      <xs:element name="succeeded" type="xs:boolean"/>
    </xs:sequence>
  </xs:complexType>
</xs:schema>
+ View Example
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<result>
    <resource xsi:type="resource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <id>{Resource identifier}</id>
        <uri>{Resource URI}</uri>
        <name>{Resource name}</name>
        <version>{Resource version}</version>
        <creationDate>2017-02-27T15:56:12.971Z</creationDate>
        <sha1>{Resource SHA1 checksum}</sha1>
        <content>eG9tLmphcg==</content>
    </resource>
    <succeeded>true</succeeded>
</result>

Status Codes

The method returns one of the following status codes:
Code Description
200 Successful completion.
201 Successful completion, new resource created.
400 The parameters are not valid or they are missing.
401 The caller is not authorized for this request.
403 The caller is not allowed to complete this request.
404 The resource does not exist.
406 The requested content type or content encoding is not supported.
500 A severe problem has occurred, programmer's details are provided.

Available Since

8.0.1.0

Parent Topic: xoms/{xomname} Resource